package com.cracker.sso.listener;

import com.cracker.sso.event.UserRegisterEvent;
import com.cracker.sso.model.UserModel;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class UserRegisterEventListener {
    @EventListener
    public void UserRegisterEvent(UserRegisterEvent event) {
        UserModel userModel = event.getUserModel();
        log.warn("用户注册 {}", userModel);
    }
}
